<?php
header("Pragma: public");
header("Expires: 0");
header("Accept-Ranges: bytes");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/vnd.ms-word");
header('Content-Disposition: attachment; filename=spravki_is_fbs.doc');
header("Content-Transfer-Encoding: binary"); 
?>
<?php 
foreach ($abiturients as $abiturient):
?>
<body lang=RU style='tab-interval:35.4pt'>
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:204;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-520092929 1073786111 9 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:10.0pt;
	margin-left:0cm;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;
	mso-fareast-language:EN-US;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;
	mso-fareast-language:EN-US;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;
	line-height:115%;}
@page WordSection1
	{size:595.3pt 841.9pt;
	margin:2.0cm 42.5pt 2.0cm 3.0cm;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.WordSection1
	{page:WordSection1;}
-->
</style>
<div class=WordSection1>

<TABLE 
style="TEXT-ALIGN: center; WIDTH: 590px; FONT-FAMILY: Arial; FONT-SIZE: 0.9em" 
border=0 cellSpacing=0 cellPadding=5>
  <TBODY>
  <TR>
    <TD style="FONT-SIZE: 1.2em; FONT-WEIGHT: bold">СПРАВКА </TD></TR>
  <TR>
    <TD style="FONT-WEIGHT: bold">о результатах единого государственного 
      экзамена </TD></TR>
  <TR>
    <TD 
      style="FONT-WEIGHT: bold"><?php echo $abiturient['lastname'].' '.$abiturient['firstname'].' '.$abiturient['surname']; ?> 
    </TD></TR>
  <TR>
    <TD style="WHITE-SPACE: nowrap">
    <p class=MsoNormal align=center style='text-align:center'><span
style='font-size:14.0pt;line-height:115%;font-family:"Times New Roman","serif"'>Личное
дело № <u><?php echo $abiturient['id']; ?></u><o:p></o:p></span></p>
    </TD>
  </TR>
  <TR>
    <TD style="WHITE-SPACE: nowrap">документ, удостоверяющий личность: 
      <?php echo $abiturient['passport_ser']; ?>&nbsp;&nbsp;<?php echo $abiturient['passport_num']; ?> </TD></TR>
  <TR>
    <TD>по результатам сдачи единого государственного экзамена обнаружил(а) 
      следующие знания по общеобразовательным предметам: </TD></TR>
  <TR>
    <TD style="PADDING-TOP: 20px">
      <TABLE 
      style="BORDER-BOTTOM: #777 1px solid; BORDER-LEFT: #777 1px solid; WIDTH: 100%; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid" 
      border=0 cellSpacing=0 cellPadding=0>
        <TBODY>
        <TR>
          <TD 
          style="PADDING-BOTTOM: 10px; WIDTH: 30%; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 10px">Наименование<BR>предмета</TD>
          <TD 
          style="PADDING-BOTTOM: 10px; WIDTH: 10%; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 10px">Балл</TD>
          <TD 
          style="PADDING-BOTTOM: 10px; WIDTH: 10%; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 10px">Год<BR>сдачи</TD>
          <TD 
          style="PADDING-BOTTOM: 10px; WIDTH: 25%; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 10px">Статус 
            результата</TD>
          <TD 
            style="PADDING-BOTTOM: 10px; WIDTH: 25%; PADDING-TOP: 10px">Номер<BR>свидетельства</TD></TR>
             <?php if ($abiturient['russian']) {?>
        <TR>
          <TD 
          style="TEXT-ALIGN: left; PADDING-BOTTOM: 7px; PADDING-LEFT: 20px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">РУССКИЙ ЯЗЫК</TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['russian'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egeyear'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">Действующий</TD>
    <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egenumber']; ?></TD></TR>
          <?php } ?>
          
           <?php if ($abiturient['math']) {?>
        <TR>
          <TD 
          style="TEXT-ALIGN: left; PADDING-BOTTOM: 7px; PADDING-LEFT: 20px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">МАТЕМАТИКА</TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['math'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egeyear'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">Действующий</TD>
    <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egenumber']; ?></TD></TR>
          <?php } ?>
          
             <?php if ($abiturient['chemistry']) {?>
        <TR>
          <TD 
          style="TEXT-ALIGN: left; PADDING-BOTTOM: 7px; PADDING-LEFT: 20px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">ХИМИЯ</TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['chemistry'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egeyear'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">Действующий</TD>
    <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egenumber']; ?></TD></TR>
          <?php } ?>   
          
             <?php if ($abiturient['biology']) {?>
        <TR>
          <TD 
          style="TEXT-ALIGN: left; PADDING-BOTTOM: 7px; PADDING-LEFT: 20px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">БИОЛОГИЯ</TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['biology'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egeyear'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">Действующий</TD>
    <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egenumber']; ?></TD></TR>
          <?php } ?>     
          
             <?php if ($abiturient['history']) {?>
        <TR>
          <TD 
          style="TEXT-ALIGN: left; PADDING-BOTTOM: 7px; PADDING-LEFT: 20px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">ИСТОРИЯ</TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['history'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egeyear'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">Действующий</TD>
    <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egenumber']; ?></TD></TR>
          <?php } ?>       
          
             <?php if ($abiturient['social']) {?>
        <TR>
          <TD 
          style="TEXT-ALIGN: left; PADDING-BOTTOM: 7px; PADDING-LEFT: 20px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">ОБЩЕСТВОЗНАНИЕ</TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['social'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egeyear'];?></TD>
          <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 7px">Действующий</TD>
    <TD 
          style="PADDING-BOTTOM: 7px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: #777 1px solid; PADDING-TOP: 7px"><?php echo $abiturient['egenumber']; ?></TD></TR>
          <?php } ?>                               
        </TBODY>
    </TABLE></TD></TR>
  <TR>
    <TD style="TEXT-ALIGN: left; PADDING-TOP: 20px">Справка для личного дела 
      абитуриента сформирована из ФИС ГИА и приема для образовательной 
      организации: <BR><BR>      Государственное бюджетное образовательное учреждение 
      высшего профессионального образования «Курский государственный медицинский 
      университет» Министерства здравоохранения  
      Российской Федерации </TD></TR>
  <TR>
    <TD 
    style="TEXT-ALIGN: left; WHITE-SPACE: nowrap; FONT-SIZE: 9pt; PADDING-TOP: 20px">Дата 
      формирования справки: <?php echo date("Y-m-d")?></TD></TR>
  <TR>
    <TD style="TEXT-ALIGN: left; PADDING-TOP: 35px">
      <TABLE style="TEXT-ALIGN: left" border=0 cellSpacing=0 cellPadding=0>
        <TBODY>
        <TR>
          <TD style="PADDING-RIGHT: 10px">Лицо, сформировавшее 
          справку:<BR><BR></TD></TR></TBODY></TABLE>
      <TABLE style="TEXT-ALIGN: center" border=0 cellSpacing=0 cellPadding=0>
        <TBODY>
        <TR>
          <TD style="PADDING-RIGHT: 10px">Секретарь</TD>
          <TD style="PADDING-RIGHT: 10px">_________________</TD>
          <TD><span style="font-size:14.0pt;line-height:115%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">Григорьян А.Ю</span></TD></TR>
        <TR>
          <TD style="PADDING-RIGHT: 10px"><SUP>(должность)</SUP></TD>
          <TD style="PADDING-RIGHT: 10px"><SUP>(подпись)</SUP></TD>
          <TD><SUP>(Фамилия И. О.)</SUP></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD style="TEXT-ALIGN: left; PADDING-TOP: 35px">
      <TABLE style="TEXT-ALIGN: left" border=0 cellSpacing=0 cellPadding=0>
        <TBODY>
        <TR>
          <TD style="PADDING-RIGHT: 10px">Ответственное лицо приемной 
            комиссии:<BR><BR></TD></TR></TBODY></TABLE>
      <TABLE style="TEXT-ALIGN: center" border=0 cellSpacing=0 cellPadding=0>
        <TBODY>
        <TR>
          <TD style="PADDING-RIGHT: 10px">Отв. секретарь</TD>
          <TD style="PADDING-RIGHT: 10px">_________________</TD>
          <TD><span style="font-size:14.0pt;line-height:115%;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">Ткаченко П.В.</span></TD></TR>
        <TR>
          <TD style="PADDING-RIGHT: 10px"><SUP>(должность)</SUP></TD>
          <TD style="PADDING-RIGHT: 10px"><SUP>(подпись)</SUP></TD>
          <TD><SUP>(Фамилия И. О.)</SUP></TD></TR>
        <TR>
          <TD style="PADDING-RIGHT: 10px">&nbsp;</TD>
          <TD style="PADDING-RIGHT: 10px; PADDING-TOP: 25px">М. П.</TD>
          <TD>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD style="TEXT-ALIGN: left; PADDING-TOP: 40px">Дата проверки 
    «____»&nbsp;&nbsp;____________&nbsp;&nbsp;______ г. </TD></TR></TBODY></TABLE>

</div>

</body>
<?php 
endforeach;
?>
<body lang=RU style='tab-interval:35.4pt'>
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:204;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-520092929 1073786111 9 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin-top:0cm;
	margin-right:0cm;
	margin-bottom:10.0pt;
	margin-left:0cm;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;
	mso-fareast-language:EN-US;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;
	mso-fareast-language:EN-US;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;
	line-height:115%;}
@page WordSection1
	{size:595.3pt 841.9pt;
	margin:2.0cm 42.5pt 2.0cm 3.0cm;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.WordSection1
	{page:WordSection1;}
-->
</style>
<br />
<div class=WordSection1>
<table border=1>
<?php foreach ($allerrors as $tmperror):?>
<tr>
<td>
	<?php 
		echo implode(' ', $tmperror);
	?>
</td>
</tr>
<?php endforeach;?>
</table>
</div>

</body>